constexpr char MyObjectUiXml[]="";

constexpr char MyObjectHeader[]=R"(#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QObject>

class MyWidget : public QObject
{
    Q_OBJECT

public:
    explicit MyWidget(QObject *parent = nullptr);
    ~MyWidget();

private:
    class InternalContext;
    InternalContext *ctx;
};

#endif // MYWIDGET_H
)";

constexpr char MyObjectCpp[]=R"(#include "mywidget.h"

class MyWidget::InternalContext
{
public:
}; //class MyWidget::InternalContext

MyWidget::MyWidget(QObject *parent) :
    QObject(parent)
{
    ctx = new InternalContext();
}

MyWidget::~MyWidget()
{
    delete ctx;
}
)";

//////////////////////////////////////////////////////////

constexpr char MyWidgetUiXml[]=R"(<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MyWidget</class>
 <widget class="QWidget" name="MyWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>300</height>
   </rect>
  </property>
 </widget>
 <resources/>
 <connections/>
</ui>
)";


constexpr char MyWidgetHeader[]=R"(#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>

namespace Ui {
class MyWidget;
}

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MyWidget(QWidget *parent = nullptr);
    ~MyWidget();

private:
    Ui::MyWidget *ui;
};

#endif // MYWIDGET_H
)";

constexpr char MyWidgetCpp[]=R"(#include "mywidget.h"
#include "ui_mywidget.h"

MyWidget::MyWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MyWidget)
{
    ui->setupUi(this);
}

MyWidget::~MyWidget()
{
    delete ui;
}
)";

//////////////////////////////////////////////////////////


constexpr char MyDialogUiXml[]=R"(<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MyWidget</class>
 <widget class="QDialog" name="MyWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>300</height>
   </rect>
  </property>
 </widget>
 <resources/>
 <connections/>
</ui>
)";


constexpr char MyDialogHeader[]=R"(#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QDialog>

namespace Ui {
class MyWidget;
}

class MyWidget : public QDialog
{
    Q_OBJECT

public:
    explicit MyWidget(QWidget *parent = nullptr);
    ~MyWidget();

private:
    Ui::MyWidget *ui;
};

#endif // MYWIDGET_H
)";

constexpr char MyDialogCpp[]=R"(#include "mywidget.h"
#include "ui_mywidget.h"

MyWidget::MyWidget(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MyWidget)
{
    ui->setupUi(this);
}

MyWidget::~MyWidget()
{
    delete ui;
}
)";


